import { defineStore } from "pinia";
import { ref } from "vue";

export const counterStore = defineStore("counter", () => {
    const count = ref(0);
    const addCount = () => {
        count.value++;
    }
    const cutCount = () => {
        count.value--;
    }

    return { count, addCount, cutCount }
}, { persist: true })